package bz.ziro.kanbe.controller.mng.site;

import java.util.List;
import java.util.TimeZone;
import java.util.logging.Logger;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import bz.ziro.kanbe.dao.SiteDao;
import bz.ziro.kanbe.model.Site;

/**
 * 
 * @author Administrator
 */
public class ListController extends Controller {

    @SuppressWarnings("unused")
    private static final Logger logger = Logger.getLogger(ListController.class.getName());

    @Override
    public Navigation run() {
        List<Site> allList = SiteDao.all();
        //サイトの検索を行う
        requestScope("resultList", allList);
        requestScope("timeZoneList", TimeZone.getAvailableIDs());
        return forward("list.jsp");
    }
}
